package jxtend.processor.eclipse.visitor;

import org.eclipse.jdt.internal.compiler.ast.ASTNode;

import jxtend.processor.eclipse.visitor.handler.ASTNodeVisitorContext;

@SuppressWarnings("restriction")
public class ASTNodeVisitorContextImpl implements ASTNodeVisitorContext {

	private final ASTNodeHandlerVisitorContextImpl target;

	public ASTNodeVisitorContextImpl(ASTNodeHandlerVisitorContextImpl target) {
		super();
		this.target = target;
	}

	@Override
	public ASTNode getParentNode() {
		return target.getParentNode();
	}

	@Override
	public ASTNode getParentNode(int index) {
		return target.getParentNode(index);
	}

	@Override
	public <A extends ASTNode> A findParentNode(Class<A> parentNodeType) {
		return target.findParentNode(parentNodeType);
	}
}
